package com.lf.entity.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import com.lf.entity.shiti.teacher;

public class tea_LoginMapper implements RowMapper<teacher> {

	@Override
	public List<teacher> getTList(ResultSet rs) {
		List<teacher> list = new ArrayList<teacher>();
		try {
			while(rs.next()){
				teacher t = new teacher();
				t.setT_password(rs.getString("t_password"));
				list.add(t);
			}
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return list;
	}

}
